package com.chinasoft.goodsManager.doamain;

import java.util.Date;

public class Order {
    private Integer id; //编号
    private Date odate;  //日期
    private String Pname;    //操作员名字
    private Double price;   //消费价格
    private String address; //地址
    private Integer num;    //数量
    private Double Oprice;  //其余价格
    private String category; //类别

    public Date getOdate() {
        return odate;
    }

    public void setOdate(Date odate) {
        this.odate = odate;
    }

    public Order() {
    }
    public Order(Integer id, Date date, String pname, Double price, String address, Integer num, Double oprice, String category) {
        this.id = id;
        this.odate = date;
        Pname = pname;
        this.price = price;
        this.address = address;
        this.num = num;
        Oprice = oprice;
        this.category = category;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public String getPname() {
        return Pname;
    }

    public void setPname(String pname) {
        Pname = pname;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Double getOprice() {
        return Oprice;
    }

    public void setOprice(Double oprice) {
        Oprice = oprice;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", odate=" + odate +
                ", Pname='" + Pname + '\'' +
                ", price=" + price +
                ", address='" + address + '\'' +
                ", num=" + num +
                ", Oprice=" + Oprice +
                ", category='" + category + '\'' +
                '}';
    }
}
